package com.bjc.principle.composite;

/**
 * @program: DesignPattern
 * @description: 叶子节点
 * @author: bjc
 * @create: 2021-01-04 17:18
 */
public class City implements Counter{
    private int sum = 0;

    public City(int sum) {
        this.sum = sum;
    }

    @Override
    public int count() {
        return sum;
    }
}
